//
//  CircleVC.m
//  UILbrary
//
//  Created by mac on 16/7/20.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "CircleVC.h"
#import "UIBezierController.h"
#import "ClockDialVC.h"
#import "CornerVC.h"


@interface CircleVC()
@property (nonatomic,strong) NSArray *titleArr;
@end


@implementation CircleVC
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.titleArr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CircleVCcell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"CircleVCcell"];
        
    }
    cell.textLabel.text = self.titleArr[indexPath.row];
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.row == 0) {
        [self.navigationController pushViewController:[[UIBezierController alloc] init] animated:YES];
    }else if (indexPath.row == 1){
        [self.navigationController pushViewController:[ClockDialVC new] animated:YES];
    }else if(indexPath.row == 2){
        [self.navigationController pushViewController:[CornerVC new] animated:YES];

    }
}
- (NSArray *)titleArr{
    return @[@"贝斯曲线",@"汽车表盘刻度",@"圆角"];
}
@end
